import Abstract from '../views/common/abstract.vue';
const releRoles = r => require.ensure([], () => r(require('../views/releRoles.vue')), 'chunkname1')
// const releGroup = r => require.ensure([], () => r(require('../views/releGroup.vue')), 'chunkname2')
// import releGroup from '../views/releGroup.vue'
import users from '../views/users.vue'

export default [{
  path: '/',
  name: '首页',
  component: (resolve) => require(['../views/index.vue'], resolve),
  children: [  
    {
      path:'/capitaldetail',
      name:'资金明细',
      des:'capitaldetail',//判断是否展开导航
      
      meta: {
        // name: '权限管理列表项'
        icon: '&#xe62e;',
        // icon_img:require("../assets/img/key.png"),

      },
      // component: (resolve) => require(['../views/index.vue'], resolve),
      component:Abstract,

      children:[
       {
          path: 'accountassets',
          name: '账户资产',
          meta: {
            name: '账户资产',
            icon_img:'',
            des:'accountassets',//判断是否选中导航

          },
          component: (resolve) => require(['../trade/accountassets.vue'], resolve),
        },
      ]
    },
    {
        path: '/tranrecord',
        name: '交易记录',
        des:'tranrecord',  
        meta: {
          name: '交易记录',
          icon_img:'',
          // des:'tranrecord',          

        },
        component:Abstract,
        
         children:[
          {
            path: 'entrustmanage',
            name: '委托管理',
            meta: {
              des:'entrustmanage',  
              icon_img:''
            },
           component: (resolve) => require(['../trade/entrustmanage.vue'], resolve),
            
          },
          {
            path: 'dealrecord',
            name: '成交记录',
            meta: {
              des:'dealrecord', 
              icon_img:''
            },
            component:(resolve) => require(['../trade/dealrecord.vue'], resolve)
          },           
        ]
      },
    {
      path:'/rechargerecord',
      name:'充值记录',
      des:'rechargerecord',//判断是否展开导航      
      meta: {
        icon: '&#xe62e;',
        // icon_img:require("../assets/img/key.png"),

      },
      component:Abstract,

      children:[
        {
          path: 'cnyrecharge',
          name: 'CNY充值',
          meta: {
            name: 'CNY充值',
            icon_img:'',
            des:'cnyrecharge',//判断是否选中导航

          },
          component:(resolve) => require(['../trade/cnyrecharge.vue'], resolve)
          
        },
        {
          path: 'cnywithdrawals',
          name: 'CNY提现',
          meta: {
            name: 'CNY提现',
            icon_img:'',
            des:'cnywithdrawals',//判断是否选中导航

          },
          component:(resolve) => require(['../trade/cnywithdrawals.vue'], resolve)
          
        },
        {
          path: 'charcurrrecord',
          name: '充币记录',
          meta: {
            name: '充币记录',
            icon_img:'',
            des:'charcurrrecord',//判断是否选中导航

          },
          component: (resolve) => require(['../trade/charcurrrecord.vue'], resolve),
        },
        {
          path: 'withcurrrecord',
          name: '提币记录',
          meta: {
            name: '提币记录',
            icon_img:'',
            des:'withcurrrecord',//判断是否选中导航

          },
          component: (resolve) => require(['../trade/withcurrrecord.vue'], resolve),
         
        },
        {
          path: 'capitalflow',
          name: '资金流水',
          meta: {
            name: '资金流水',
            icon_img:'',
            des:'capitalflow',//判断是否选中导航

          },
          component: (resolve) => require(['../trade/capitalflow.vue'], resolve),
        }
      ]
    }
  ]
}];